package com.example.junit5demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.example.junit5demo.dao.UserDao;
import com.example.junit5demo.domain.User;

@Component
public class UserService {
    
    @Autowired
    private UserDao userDao;
 
    public User getUserById(Integer id) {
        return userDao.getUserById(id);
    }
 
    public Integer insertUser(User user) {
        return userDao.insertUser(user);
    }
}